import { dyjHttp as http } from '@/services/http';
import type { ListResult } from '@/types/api/common';
import type { OrderItem, OrderListParamsDto, UpdateVipOrderDto } from '@/types/api/crm-dyj/order';

/** 列表 */
export const getList = (params: OrderListParamsDto) =>
  http<ListResult<OrderItem>>({ url: '/api/admin/order_management/order_list', method: 'get', params });
/** 编辑 */
export const updateOrder = (data: UpdateVipOrderDto) => http({ method: 'put', url: '/api/admin/order_management/update_order', data });
